//
//  TCSGDownloaderPlugins.h
//  StoryGrabber
//
//  Created by Thomas on 8/19/09.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>


@interface TCSGDownloaderPlugins : NSObject {

}
+ (BOOL)plugInClassIsValid:(Class)plugInClass;
@end

@protocol TCSGStoryDownloaderBase

//Version is used to know what can be asked of the plugin
-(int)version;


//Returns an array of storyIDs passed to the getStory: method
-(NSArray *)getStoriesArrayForAuthor:(NSString *)authorID;


//Returns a dictionary with thefollowing keys:author,title,story,storyArray,summary,codes,genre,host,HTMLCode
//HTMLCode is, for StoriesOnline.net story 44432 SOL_44432, depends on plugin
//host would be StoriesOnline.net
//author string with author
//title string with title
//storyArray array with each chapter in seperate chapter
//story string containing full story
-(NSDictionary *)getStory:(NSString *)storyID;

//Return the HostName to be displayed
-(NSString *)hostName;

//Returns the Image to be displayed
-(NSImage *)hostImage;

//returns the Name to be sure to get credit
-(NSString *)pluginAuthor;


@end
